package gizwits.centerair.way;

import java.util.HashMap;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;

import gizwits.kit.Address;
import gizwits.kit.HttpKit;

public class RecreateRoomService {
	public static void main(String[] args) {
		run(494103, 372, "[{floorNo:1,floorType:5A},{floorNo:2,floorType:5B}]");
	}
	
	public static JSONObject run(int homeId, int uid, String floors) {
		Map<String, Object> params = new HashMap<>();
		params.put("method", "createRoomService");
		params.put("floors", floors);
		params.put("uid", uid);
		String result = HttpKit.post(Address.cenac_local, params);
		return JSONObject.parseObject(result);
	}
}
